<div id="page-show" class="panel panel-default">
  <% if !@page.locked or admin? %>
    <div class="panel-heading">
      <%= link_to comments_page_path(@page.slug) do %>
        <%= @page.comments_count %> 条评论
      <% end %>,
      版本 <%= render_page_version(@page) %>， <%= t("common.last_modified_at")%> <%= render_page_updated_at(@page) %>
      <span class="pull-right opts">
        <%= render_edit_page_button(@page) if can? :edit, @page %>
      </span>
    </div>
  <% end %>

  <div class="panel-body markdown">
    <article>
      <%= raw @page.body_html %>
    </article>

    <%= social_share_button_tag h("#{@page.title} via: @#{Setting.twitter_id} ") %>
  </div>

  <div class="editors panel-footer ">
    <h3><%= t("pages.wiki_page_contributors")%></h3>
    <div class="avatars">
      <% @page.editors.each do |item| %>
        <%= user_avatar_tag(item, :small) %>
      <% end %>
    </div>
    <div class="buttons">
      <%= link_to "发表评论", comments_page_path(@page.slug, anchor: "new_comment"), class: "btn btn-success" %>
    </div>
  </div>
</div>

